﻿@{
    Layout = "~/Views/Shared/_WxLayout.cshtml";
    ViewBag.Title = "PMP";
}
<div style="padding:1em;">
    <h1>@ViewBag.Title <a href="@Url.Action("Manager","Exam")" style="display:none;">&nbsp;&nbsp;</a></h1>
    <p>
        PMP相关部分功能
    </p>
</div>
<div class="weui-cells__title">单选题</div>
<div class="weui-cells">
    <a class="weui-cell  weui-cell_access" href="@Url.Action("DailyExam")">
        <div class="weui-cell__bd">
            <p>每日一练</p>
        </div>
        <div class="weui-cell__ft">每天10道习题</div>
    </a>
    <a class="weui-cell  weui-cell_access" href="@Url.Action("RandomIndex")">
        <div class="weui-cell__bd">
            <p>随机练习</p>
        </div>
        <div class="weui-cell__ft">随机抽取题目</div>
    </a>
</div>
<div class="weui-cells__title">图文类题</div>
<div class="weui-cells">
    <a class="weui-cell  weui-cell_access" href="@Url.Action("PicList","PicMobile")">
        <div class="weui-cell__bd">
            <p>图文题</p>
        </div>
        <div class="weui-cell__ft">课后图文联系</div>
    </a>
</div>
<div class="weui-cells__title" onclick="more();">其他</div>
<div class="weui-cells">
    <a class="weui-cell  weui-cell_access" href="@Url.Action("More")" onclick="return err();">
        <div class="weui-cell__bd">
            <p>更多功能</p>
        </div>
        <div class="weui-cell__ft">设计ing...</div>
    </a>
</div>

<div style="height:4em;">
    <div class="weui-footer weui-footer_fixed-bottom">
        <p class="weui-footer__text">&copy; 2020 jh.sjtu-oec.com</p>
    </div>
</div>
<script>
    function err() {
        layer.open({
            time: 3
            , shade: false
            , style: 'background-color: #666;color:#fff; border:none;'
            , content: '开发中...'
        });
        return false;
    }

    function more() {
        var url = "@Url.Action("manager", "exam")";
        $("h1").eq(0).find("a").show();
        layer.open({
            time: 3
            , shade: false
            , style: 'background-color: #666;color:#fff; border:none;'
            , content: '开发中...'
            , end: function () { $("h1").eq(0).find("a").hide();}
        });
        return false;
    }
</script>